<select onchange="window.location.href=this.options[this.selectedIndex].value">
<@ for ver in version.list @>
  <option
   value="<$ ver.href $>/api/"
   {% if page.version == "<$ ver.name $>"%}selected{% endif %}>
    <$ ver.name $> <@ if version.latest.name == ver.name @>(latest)<@ endif @>
  </option>
<@ endfor @>
</select>


